﻿<?php
$page_cat = "forums";
require_once("../configs.php");
?>
<head>
<title><?php echo $website['title']; ?></title>
<meta content="false" http-equiv="imagetoolbar" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<link rel="shortcut icon" href="../wow/static/local-common/images/favicons/wow.ico" type="image/x-icon" />
<link rel="search" type="application/opensearchdescription+xml" href="http://eu.battle.net/en-gb/data/opensearch" title="Battle.net Search" />
<link rel="stylesheet" type="text/css" media="all" href="../wow/static/local-common/css/common.css?v15" />
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/local-common/css/common-ie.css?v15" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/local-common/css/common-ie6.css?v15" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/local-common/css/common-ie7.css?v15" /><![endif]-->
<link rel="stylesheet" type="text/css" media="all" href="../wow/static/css/wow.css?v4" />
<link rel="stylesheet" type="text/css" media="all" href="../wow/static/local-common/css/cms/forums.css?v15" />
<link rel="stylesheet" type="text/css" media="all" href="../wow/static/local-common/css/cms/cms-common.css?v15" />
<link rel="stylesheet" type="text/css" media="all" href="../wow/static/css/cms.css?v4" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/css/cms-ie6.css?v4" /><![endif]-->
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/css/wow-ie.css?v4" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/css/wow-ie6.css?v4" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="../wow/static/css/wow-ie7.css?v4" /><![endif]-->
<script type="text/javascript" src="../wow/static/local-common/js/third-party/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../wow/static/local-common/js/core.js?v15"></script>
<script type="text/javascript" src="../wow/static/local-common/js/tooltip.js?v15"></script>
<script type="text/javascript" src="../wow/static/local-common/js/cms.js"></script>
<!--[if IE 6]> <script type="text/javascript">
//<![CDATA[
try { document.execCommand('BackgroundImageCache', false, true) } catch(e) {}
//]]>
</script>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
Core.staticUrl = '<?php echo $website['address'];?>wow/static';
Core.baseUrl = '<?php echo $website['address'];?>';
Core.project = 'wow';
Core.locale = 'en-gb';
Core.buildRegion = 'eu';
Core.loggedIn = true;
Flash.videoPlayer = 'http://eu.media.blizzard.com/wow/player/videoplayer.swf';
Flash.videoBase = 'http://eu.media.blizzard.com/wow/media/videos';
Flash.ratingImage = 'http://eu.media.blizzard.com/wow/player/rating-pegi.jpg';
//]]>
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><body class="en-gb station-home" onUnload="opener.location=('index.php')">
<div id="wrapper">
	<?php include("../header.php"); ?>
		<div id="content">
			<div class="content-top">
				<div class="content-trail">
					<ol class="ui-breadcrumb">
					<li>
					<a href="../index.php" rel="np"><?php echo $website['title']; ?></a></li>
					<li class="last"><a href="../forum" rel="np"><?php echo $Forums['Forums']; ?></a></li>
					</ol>
				</div>
				
				<div class="content-bot">
				<script type="text/javascript">$(function(){Cms.Station.init();});</script>
					<div id="station-view">
						<div class="bt-lite">
							<div class="bt-link readmore"><?php echo $Forum['Forum77']; ?> <span><a href="#">(<?php echo $View_all['View_all']; ?>)</a></span></div>
								<a href="javascript:;" onClick="Cms.Station.btLiteScroll(1)" class="bt-left"></a>
								<a href="javascript:;" onClick="Cms.Station.btLiteScroll(-1)" class="bt-right"></a>
					
							<div class="bt-adjust">
								<div class="bt-mask">
									<div id="bt-holder">
										<?php
										$get_blizzposts = mysql_query("SELECT * FROM forum_blizzposts ORDER BY date DESC");
										$i=0;
										while($blizzpost = mysql_fetch_array($get_blizzposts)){
											if($blizzpost['type'] == "reply"){
												$post = mysql_fetch_assoc(mysql_query("SELECT * FROM forum_replies WHERE id = '".$blizzpost['postid']."'"));
												$threadId = $post['threadid'];
											}else{
												$post = mysql_fetch_assoc(mysql_query("SELECT * FROM forum_threads WHERE id = '".$blizzpost['postid']."'"));
												$threadId = $post['id'];
											}
											$forum = mysql_fetch_assoc(mysql_query("SELECT * FROM forum_forums WHERE id = '".$post['forumid']."'"));
											
											if($i==0){ echo '<div class="bt-set">'; }
											echo'<a href="category/view-topic/?t='.$threadId.'">
												<span class="desc">
													<span class="int">';
														$content = substr($post['content'],0,120);
														$content=str_replace("[quote", "",$content);
														$content=str_replace("[/quote]", "",$content);
														$content=str_replace("[b]", "",$content);
														$content=str_replace("[/b]", "",$content);
														$content=str_replace("[i]", "",$content);
														$content=str_replace("[/i]", "",$content);
														$content=str_replace("[u]", "",$content);
														$content=str_replace("[/u]", "",$content);
														$content=str_replace("[ul]", "",$content);
														$content=str_replace("[/ul]", "",$content);
														$content=str_replace("[li]", "",$content);
														$content=str_replace("[/li]", "",$content);
														$content=str_replace("[code]", "",$content);
														$content=str_replace("[/code]", "",$content);
														$content=str_replace("]", "",$content);
														$content=stripslashes($content);
														echo '"'.$content.' ..."
														
												</span>
												</span>
												<span class="info">
														<span class="char">';
														$userBlizz = mysql_fetch_assoc(mysql_query("SELECT `character`,firstName FROM users WHERE id = '".$blizzpost['author']."'"));
														if($userBlizz['character'] == 0){
															$char['name'] = $userBlizz['firstName'];
														}else{
															$char=mysql_fetch_assoc(mysql_query("SELECT name FROM $server_cdb.characters WHERE guid = '".$userBlizz['character']."'"));
														}
														
														echo $char['name'].'</span>
														 '.$post['date'].'
														 '.$Forum['Forum80'].' <strong>'.$forum['name'].'</strong>:
														 '.$post['name'].'
												 </span>
											</a>';
											$i++;
											if($i==3){ echo '</div>'; $i=0;}
											
										}
										?>
										
										<div class="bt-set">
											<a href="http://w.ctmwow.com/game_client.php">
												<span class="desc">
												<span class="int">游戏资源下载汇总,本站不提供直接下载,仅搬运分享网络共享资源,如你发现资源失效或有误,请联系管理员.</span>
												</span>
												<span class="info">
												 </span>
											</a>
										</div>
										<div class="bt-set">
											<a href="http://w.ctmwow.com/forum/category/view-topic/?t=10">
												<span class="desc">
												<span class="int">服务器基础设定公告</span>
												</span>
												<span class="info">
												 </span>
											</a>
										</div>
										<div class="bt-set">
											<a href="http://w.ctmwow.com/forum/category/view-topic/?t=11">
												<span class="desc">
												<span class="int">服务器新手玩家攻略白皮书</span>
												</span>
												<span class="info">
												 </span>
											</a>
										</div>
										<div class="bt-set">
											<a href="http://w.ctmwow.com/forum/category/view-topic/?t=9">
												<span class="desc">
												<span class="int">一直以来，我们都密切关注着线上游戏内的违规行为，并积极核查玩家们提供的举报线索，坚持严厉而持续的打击。
为营造良好的游戏环境，我们将再次加大对违规行为的打击力度，集中整治违规行为，净化线上游戏环境。
同时，我们要感谢广大热心玩家为我们提供的支持和理解。 
我们呼吁广大玩家朋友在游戏过程中遇到了恶意骚扰，发现恶意利用有利BUG牟利的现象，请立即通过联系管理员举报，我们会在收到举报信息后认真核查并采取措施。</span>
												</span>
												<span class="info">
												 </span>
											</a>
										</div>
									</div>
								</div>
								<div class="bt-mask-l"></div>
								<div class="bt-mask-r"></div>
							</div>
						</div>
						
						<div id="station-content">
							<div class="station-content-wrapper">
								<div class="station-inner-wrapper">
									<div id="forum-list">
										<div id="forum-list-interior">
											<?php
											$get_categs = mysql_query("SELECT * FROM forum_categ ORDER BY num ASC");
											while($categ = mysql_fetch_array($get_categs)){
												echo'
												<a id="forum'.$categ['id'].'" href="javascript:;" onclick="Cms.Station.parentToggle('.$categ['id'].',this)" class="forum-parent">
												'.$categ['name'].'
												</a>
												<div class="child-forums" id="child'.$categ['id'].'">
												<div class="forums-list">
													';
													$get_forums = mysql_query("SELECT * FROM forum_forums WHERE categ = '".$categ['id']."' ORDER BY num ASC");
													while($forum = mysql_fetch_array($get_forums)){
														echo '
														
																<a href="category/?f='.$forum['id'].'" class="forum-link">
																	<span class="forum-icon">
																			<img src="../images/forum/forumicons/'.$forum['image'].'.gif" />
																	</span>
																	<span class="int">
																		<span class="int-padding">
																			'.$forum['name'].'
																			<span class="desc">'.$forum['description'].'</span>
																		</span>
																	</span>
																</a>
														';
													}
													echo '
												</div>
												</div>';
											}
											?>
										</div>
									</div>


									<div id="popular-topics">
										<div class="readmore"><?php echo $P_topics['P_topics']; ?></div>
											<div class="sidebar-module" id="sidebar-forums">
							<div class="sidebar-title">
							<h3 class="category title-forums"><a href="#"><?php echo $P_topics['P_topics']; ?></a></h3>
							</div>
							<div class="sidebar-content">
							<ul class="trending-topics">
								<?php
								$get_lastactivity = mysql_query("SELECT *, date FROM $server_db.forum_threads ORDER BY `last_date` DESC LIMIT 10");
								if(mysql_num_rows($get_lastactivity) > 0){
								while($lastact = mysql_fetch_array($get_lastactivity)){
									$forum = mysql_fetch_assoc(mysql_query("SELECT * FROM $server_db.forum_forums WHERE id = '".$lastact['forumid']."'"));
									echo '
									<li>
									<a href="category/view-topic/?t='.$lastact['id'].'" class="topic">
									'.$lastact['name'].'</a>
									<a class="forum">'.$forum['name'].'</a> - <span class="date">'.$lastact['date'].'</span></li>
									';
								}
								}else{
									echo 'No Topics';
								}
								?>
								</ul>
							</div>
						</div>
											<div class="coc"> <?php echo $click['click']; ?> <a href="http://battle.net/community/conduct"><?php echo $here['here']; ?></a><?php echo $Forum['Forum33']; ?></div>
									</div>
									<span class="clear"><!-- --></span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	<?php include("../footer.php"); ?>
</body>
</html>